@extends('admin.common.base-master')

@section('html-head')
    {{--<link href="{{url('/vendor/tyupload/control/css/zyUpload.css')}}" type="text/css" rel="stylesheet" />--}}
    {{--<link href="{{url('css/jquery.form.css')}}" type="text/css" rel="stylesheet" />--}}
    {{--<script src="{{url('/vendor/My97DatePicker/WdatePicker.js')}}"></script>--}}
    {{--<script src="{{url('/js/lib/jquery.form.js')}}"></script>--}}
@endsection

@section('html-body')
    <div id="content">
        <div id="cur-position">
            <span class="tit">订单管理</span>
            <a href="{{route('Admin.Home.userBargainInitiateList')}}">用户发起的砍价</a>
            <em>&gt;</em>
            <a href="#">用户发起的砍价详情</a>
        </div>
        @include('admin.common.activity-header')
        <!-- cur-position end -->

        <div class="gg-step2">

            <div class="list-wrap">
                <h2 class="head">
                    <span class="span1">用户发起的砍价活动信息</span>
                </h2>
                <!-- list-text-box start -->
                <div class="list-text-box">
                    <div class="list-text">
                        <label class="tit">用户昵称：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->user_info){{$thisBargainInitiate->user_info->nickname}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">用户头像：</label>
                        <div class="cont">
                            <img src="@if($thisBargainInitiate && $thisBargainInitiate->user_info){{$thisBargainInitiate->user_info->photo_url}} @endif" alt="" width="40px">
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">商品编号：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->goods_info){{$thisBargainInitiate->goods_info->ssn}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">商品名称：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->goods_info){{$thisBargainInitiate->goods_info->name}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">商品缩略图：</label>
                        <div class="cont">
                            <img src="@if($thisBargainInitiate && $thisBargainInitiate->goods_info){{$thisBargainInitiate->goods_info->thumb_url}} @endif" alt="" width="40px">
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">商品市场价：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->goods_info){{$thisBargainInitiate->goods_info->m_price}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">商品销售价：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->goods_info){{$thisBargainInitiate->goods_info->s_price}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">购买商品所获的积分：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->goods_info){{$thisBargainInitiate->goods_info->integral}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">是否包邮：</label>
                        <div class="cont">
                            @if($thisBargainInitiate && $thisBargainInitiate->goods_info && $thisBargainInitiate->goods_info->is_free_shipping == 1)
                                <p class="text">包邮</p>
                            @else
                                <p class="text">不包邮</p>
                            @endif
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">商品属性名称：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->goods_spu_info){{$thisBargainInitiate->goods_spu_info->spu_name}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">商品属性价格：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->goods_spu_info){{$thisBargainInitiate->goods_spu_info->price}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">商品库存：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->goods_spu_info){{$thisBargainInitiate->goods_spu_info->stock}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">砍价最低价：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate){{$thisBargainInitiate->lowest_price}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">最大参与人数：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate && $thisBargainInitiate->activity_bargain_info){{$thisBargainInitiate->activity_bargain_info->max_join_count}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">砍价次数：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate){{$thisBargainInitiate->bargain_num}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">最终金额：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate){{$thisBargainInitiate->finally_money}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">砍价结束时间：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate){{$thisBargainInitiate->end_time}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">发起砍价的时间：</label>
                        <div class="cont">
                            <p class="text">@if($thisBargainInitiate){{$thisBargainInitiate->created_at}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">状态：</label>
                        <div class="cont">
                            <p class="text">
                                @if($thisBargainInitiate && $thisBargainInitiate->status == -1)
                                    取消
                                @elseif($thisBargainInitiate && $thisBargainInitiate->status == 0)
                                    正常
                                @elseif($thisBargainInitiate && $thisBargainInitiate->status == 1)
                                    完成
                                @endif
                            </p>
                        </div>
                    </div>
                    <!-- list-text-box end -->
                </div>
            </div>
        </div>
    </div>
@endsection